package version;

import com.jinyouapp.common.utils.common.DateUtils;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * Created by 86152 on 2019/4/17.
 */
@Getter
@Setter
@Accessors(chain = true)
public class SysAppVersionLog implements Serializable {

    private Long id;
    private String updateUrl;          //最新的下载地址
    private Integer typeId;            //应用类型 1:android用户端,2Android商户端,3配送端,4ios用户端，5ios商户端，6ios配送端
    private String currVersion;        //当前版本号  1.0.1
    private String currVersionCode;    //当前版本号 11

    private Integer isShow;             //更新是否提示
    private Integer isForce;            //强制更新
    private String note;                //备注
    private Long createTime;             // 时间

    public SysAppVersionLog() {
    }

    public SysAppVersionLog(String updateUrl, Integer typeId, String currVersion, String currVersionCode, Integer isShow, Integer isForce, String note) {
        this.createTime = DateUtils.getCurrTime();
        this.updateUrl =updateUrl;
        this.typeId =typeId;
        this.currVersion =currVersion;
        this.currVersionCode =currVersionCode;
        this.isShow =isShow;
        this.isForce =isForce;
        this.note =note;
    }
}
